home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / SchemaWin$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.7 KB  |  36 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import com.extensibility.rock.Screen;
  5. import com.extensibility.xml.MetaPropHash;
  6. import com.extensibility.xml.URI;
  7. import java.awt.Dialog;
  8. import java.awt.event.ActionEvent;
  9. import java.util.Hashtable;
  10.  
  11. class SchemaWin$3 extends BaseAction {
  12.    // $FF: synthetic field
  13.    final SchemaWin this$0;
  14.  
  15.    public void actionOccurred(ActionEvent var1) {
  16.       if (this.this$0.commitPendingEdits(true)) {
  17.          SchemaInfo var2 = new SchemaInfo(this.this$0, this.this$0.getSchemaDoc());
  18.          Screen.centerInScreen(var2);
  19.          ((Dialog)var2).show();
  20.          if (var2.confirmed()) {
  21.             this.this$0.getSchemaDoc().setNamespace(new URI((URI)null, var2.getNamespace()));
  22.             this.this$0.getSchemaDoc().setSchemaPrefix(var2.getPrefix());
  23.             Hashtable var3 = var2.getMetaProps();
  24.             MetaPropHash var4 = this.this$0.getSchemaDoc().getSchema().getMetaPropHash();
  25.             var4.setMetaProps(var3);
  26.          }
  27.  
  28.       }
  29.    }
  30.  
  31.    SchemaWin$3(SchemaWin var1, String var2, char var3) {
  32.       super(var2, var3);
  33.       this.this$0 = var1;
  34.    }
  35. }
  36.